ci: remove deps debug symbols for smaller caches - #2621
Conversation
There was a problem hiding this comment.
Summary
Looks good: this PR consistently introduces a dedicated ci cargo profile and wires it through CI workflows/just recipes to reduce cache size by stripping dependency debug symbols while preserving debug info for the workspace package. The cache producer (build-debug-cache.yml) and key consumers now align on --profile ci/STRATUS_PROFILE=ci, which is the critical correctness point for cache reuse.
I did not find concrete blocking issues in the provided diff.
There was a problem hiding this comment.
✅ Follow-up: merge from main — still clean
Reviewed the merge commit (6aaa073). The merge brought in unrelated source changes (src/eth/executor/mod.rs, src/infra/metrics/metrics_definitions.rs) from main, but the PR's CI changes all survived intact.
No new findings. The profile wiring is consistent across all workflows:
build-debug-cache.ymlbuilds with--profile ci→ consumers restore and useSTRATUS_PROFILE=ci[profile.ci]inheritsdevwithdebug = falsefor deps only — stratus keeps full debugprofile_flagin justfile correctly threads--profile cithrough all cargo commands includingcargo llvm-cov report(which supports--profile)- Cache path (
target/) coverstarget/ci/output directory
Approving.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a96fdc13af
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Introduce
ciprofile strips debug symbolsUpdate workflows to use
STRATUS_PROFILE=ci--profile ciin build commandsExtend
justfilewithprofile_flagsupportDiagram Walkthrough
File Walkthrough
8 files
Add STRATUS_PROFILE env var for CI testsUse `ci` profile in debug cache buildAdd `ci` profile in e2e-contracts-rocks workflowAdd `ci` profile env in e2e-leader-fake-leaderAdd `ci` profile env in e2e-leader-followerAdd `ci` profile env in rust-test workflowDefine CI-only profile stripping debug symbolsAdd `profile_flag` for STRATUS_PROFILE in justfile